#include "DXUT.h"
#include "ITexture.h"


 
ITexture::ITexture(  int nResType, const TCHAR * resName , D3DPOOL pool/*=D3DPOOL_DEFAULT*/ )
	:IResource(nResType,resName,pool)
	,m_dwHeight(0)
	,m_dwWidth(0)
	,m_pD3DTexture(0)
{
	
}


ITexture::~ITexture(void)
{
}

 

const	DWORD & ITexture::TextureHeight( void )
{
 return m_dwHeight;
}

const	DWORD &ITexture::TextureWidth( void )
{
	return m_dwWidth;
}

void ITexture::SetTextureWidth( const DWORD & w )
{
	m_dwWidth=w;
}

void ITexture::SetTextureHeight( const DWORD & h )
{
	m_dwHeight=h;
}

LPDIRECT3DBASETEXTURE9 ITexture::GetTexture()
{
	return m_pD3DTexture;
}

void ITexture::SetTexture( LPDIRECT3DTEXTURE9 pTexture )
{
	
	m_pD3DTexture=pTexture;
}

void ITexture::SetTextureDepth( const DWORD & depth )
{
	m_dwDepth=depth;
}

const DWORD & ITexture::TextureDepth( void )
{
	return m_dwDepth;
}
